package org.aeon.gamechatnest.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 角色用户表
 *
 * @TableName role_user
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role_user")
public class RoleUser implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 角色id
     */
    @TableId
    private Long roleId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间", name = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
